home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / os2 / sysb091a.zip / sysbench / src / types.h < prev   
C/C++ Source or Header  |  1994-11-05  |  656b  |  29 lines

  1.  
  2. #ifndef TYPES_H
  3. #define TYPES_H
  4.  
  5. #define true  1
  6. #define false 0
  7. #define null  0L
  8.  
  9. typedef char                          i8;
  10. typedef signed char             s8;
  11. typedef unsigned char           u8;
  12. typedef short int                   i16;
  13. typedef signed short int        s16;
  14. typedef unsigned short int      u16;
  15. typedef long int                    i32;
  16. typedef signed long int         s32;
  17. typedef unsigned long int       u32;
  18. typedef signed short            bool;
  19.  
  20. #ifndef min
  21. #define min(a,b) ((a) > (b) ? (b) : (a))
  22. #endif
  23. #ifndef max
  24. #define max(a,b) ((a) < (b) ? (b) : (a))
  25. #endif
  26. #define clamp(low, x, high) ((x) < (low) ? (low) : ((x) > (high) ? (high) : (x)))
  27.  
  28. #endif
  29.